package com.zshan.clinic.admin.entity.vo;

import com.zshan.clinic.common.constant.CommonConstant;
import lombok.Data;

import java.util.Date;

/**
 * 会员卡
 * @author lichen
 */
@Data
public class PatientMemberVo {

    /** 患者ID */
    private Long patientId;

    /** 余额 */
    private Integer balance;

    /** 最近充值日期 */
    private Date lastRechargeTime;

    /**
     * 返回默认的
     * @param patientId
     * @return
     */
    public static PatientMemberVo buildDefault(Long patientId) {
        PatientMemberVo patientMemberVo = new PatientMemberVo();
        patientMemberVo.setPatientId(patientId);
        patientMemberVo.setBalance(CommonConstant.DEFAULT_0);
        return patientMemberVo;
    }
}
